package net.yb.servlet;

import net.yb.entity.User;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/world")
public class WorldServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        User user = new User();
        user.setId(1001);
        user.setName("张三");
        user.setPwd("000000");
        user.setAge(18);
        user.setSex("男");
        user.setHeight(180.6);
        System.out.println(user);

    }
}
